﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Specialized;

namespace Ylh.Data
{
    public class SqlWhere
    {
        #region 属性
        private EntityBase _baseInfo;
        /// <summary>
        /// 对象条件
        /// </summary>
        public EntityBase Info
        {
            get { return _baseInfo; }
            set { _baseInfo = value; }
        }

        private String _strSqlWhere;
        /// <summary>
        /// 复杂的sql条件语句
        /// Key:@参数名称
        /// Vale:值
        /// </summary>
        public String StrSqlWhere
        {
            get { return _strSqlWhere; }
            set { _strSqlWhere = value; }
        }

        private NameValueCollection _preSqlWhere;
        /// <summary>
        /// 条件参数
        /// </summary>
        public NameValueCollection PreSqlWhere
        {
            get { return _preSqlWhere; }
            set { _preSqlWhere = value; }
        }
        private String _selectColumn;
        /// <summary>
        /// 查询列
        /// 指定查询表中的否几列
        /// 默认为全部
        /// </summary>
        public String SelectColumn
        {
            get { return _selectColumn; }
            set { _selectColumn = value; }
        }
        #endregion
    }
}
